import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 引入axios模块 ——全局安装
import axios from "axios";
import VueAxios from "vue-axios";
axios.defaults.baseURL = 'http://127.0.0.1:3001/v1/'
Vue.use(VueAxios, axios);

// 引入swiper模块
import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/css/swiper.css";
Vue.use(VueAwesomeSwiper);

// 引入element-ui
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

// 引入moment模块 注入原型链
import moment from "moment";
Vue.prototype.moment = moment;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");



